package com.itic.appbase.framework.utils.wxpay;

public enum WxWithdrawState {
	SUCCESS("SUCCESS","成功"),FAILED("FAILED","失败"),PROCESSING("PROCESSING","进行中");
	private String type;
	private String name;
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	WxWithdrawState(String type,String name){
		this.type = type;
		this.name = name;
	}
	
	public static WxWithdrawState getWxWithdrawState(String type){
		WxWithdrawState temp = null;
		switch(type){
		case"SUCCESS":
			temp = WxWithdrawState.SUCCESS;
			break;
		case"FAILED":
			temp = WxWithdrawState.FAILED;
			break;
		case"PROCESSING":
			temp = WxWithdrawState.PROCESSING;
			break;
			default:break;
		}
		return temp;
	}
}
